Skip to content

feat(rust): Postgres sqlx adapter (connect + query stream) (#1882) - #1973

Merged
ZhuchkaTriplesix merged 1 commit into
epic/tauri-migrationfrom
issue/1882-postgres-sqlx-adapter
Nov 15, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
epic/tauri-migrationfrom
issue/1882-postgres-sqlx-adapter

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • PostgresSession via sqlx + shared Tokio runtime; db_connect_postgres command
  • db_execute_query dispatches SQLite or Postgres; batched QueryEvent stream
  • Password is session/IPC only (not ProfileStore) — keyring remains feat(rust): keyring-rs secret store wrapper #1878
  • Live cargo tests against docker querya-postgres (shop.customers)

Closes #1882

Parent: #1848 · Next: #1886 form UI, then object-tree introspect

Test plan

  • cargo test --lib (34) incl. live PG stream + DML
  • Invoke db_connect_postgres + db_execute_query against localhost:5432 querya/querya
  • Confirm ProfileStore rows never contain password

Wire sqlx Postgres behind ConnectionRegistry with batched QueryEvent
streaming (parity with SQLite). Session password is IPC-only; ProfileStore
still never writes secrets. Live tests hit docker querya-postgres.
@github-actions github-actions Bot added backend Backend database driver execution and queries P1 High priority / Core capability tauri Tauri 2 / apps/tauri migration track rust Rust backend (src-tauri / crates) labels Nov 15, 2026
@github-actions github-actions Bot added this to the Tauri migration milestone Nov 15, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 7ee0799 into epic/tauri-migration Nov 15, 2026
2 of 3 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1882-postgres-sqlx-adapter branch November 15, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend database driver execution and queries P1 High priority / Core capability rust Rust backend (src-tauri / crates) tauri Tauri 2 / apps/tauri migration track

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant